#ifndef _COMMON_HEADER_
#define _COMMON_HEADER_

#ifdef __cplusplus
extern "C" {
#endif

#define BUF_LENGTH 1024

typedef struct st_client_info {
    int sockfd;
    char buf[BUF_LENGTH];
}client_info_t, *client_info_p;

typedef void *(*task_func_t) (void *);

int create_task(char name[], task_func_t  func, void *client_info);


#ifdef __cplusplus
}
#endif

#endif